package com.raychi.demo.util;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.raychi.demo.entity.Company;

public class CompanyUtil {
	
	public static Company createCompany(ResultSet rs) throws SQLException {
		Company company;
		company = new Company();
		company.setName(rs.getString("name"));
		company.setOrderCount(rs.getInt("orderCount"));
		company.setId(rs.getInt("id"));
		return company;
	}
}
